﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Core.JwtHelper
{
    /// <summary>
    /// 标记此特性代表可以忽略jwt授权，直接访问接口
    /// </summary>
    [AttributeUsage(AttributeTargets.Class| AttributeTargets.Method)]
    public class AllowAnyJwtVerificationAttribute:Attribute
    {
        public bool NeedNotValidate = true;
        /// <summary>
        /// 跳过鉴权允许任何人访问
        /// </summary>
        /// <param name="NeedNotValidate"></param>
        public AllowAnyJwtVerificationAttribute(bool NeedNotValidate=true)
        {
            this.NeedNotValidate = NeedNotValidate;
        }
    }
}
